sunxi: add Kconfig option for the maximum accessible DRAM
authorIcenowy Zheng <[email protected]>
Thu, 25 Oct 2018 09:23:06 +0000 (17:23 +0800)
committerJagan Teki <[email protected]>
Mon, 29 Oct 2018 15:11:15 +0000 (20:41 +0530)
commitf8aa3f8d84af6e9ae0dce9c3577d342c6a013b14
tree8c739300f825ed24528896f8c211a35cb82be9b6
parent7009134c99512bd8a9a09cf14f35450f32a8602c
sunxi: add Kconfig option for the maximum accessible DRAM

Allwinner 64-bit SoCs can use 4GiB DRAM chip, however their memory map
has only allocated 3GiB for DRAM, so only 3GiB of the DRAM is
accessible.

Add a Kconfig option for the maximum accessible DRAM.

For A80 it should be a much higher value (8GiB), but as I have no A80
device to test and originally U-Boot only supports 2GiB DRAM on A80, it
currently still falls under the 2GiB situation.

Signed-off-by: Icenowy Zheng <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
arch/arm/mach-sunxi/Kconfig